﻿namespace Digitalmes.Scada.Extensions;

public static class RequestMessageExtension
{
    /// <summary>
    /// 提取文本对象
    /// </summary>
    /// <param name="message"></param>
    /// <param name="tag">标记</param>
    /// <returns></returns>
    public static string? GetString(this RequestMessage message, string tag)
    {
        return message.GetData(tag)?.GetString();
    }
}
